package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien_MienGiam")
public class Tbl_QLDTTXA_HocVien_MienGiam implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien_DonXinXetMienGiam donMGId = null;
   private Tbl_QLDTTXA_MonHoc monHocId = null;
   private Boolean duocMienGiam;
   private Boolean daXetHP;
   private String ghiChu;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="donMGId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_DonXinXetMienGiam_tbl_QLDTTXA_HocVien_MienGiam")
   public Tbl_QLDTTXA_HocVien_DonXinXetMienGiam getDonMGId() {
	    return donMGId;
   }
   public void setDonMGId(Tbl_QLDTTXA_HocVien_DonXinXetMienGiam donMGId) {
	    this.donMGId=donMGId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="monHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_MonHoc_tbl_QLDTTXA_HocVien_MienGiam")
   public Tbl_QLDTTXA_MonHoc getMonHocId() {
	    return monHocId;
   }
   public void setMonHocId(Tbl_QLDTTXA_MonHoc monHocId) {
	    this.monHocId=monHocId;
   }

   public Boolean getDuocMienGiam() {
   	return duocMienGiam;
   }
   public void setDuocMienGiam(Boolean duocMienGiam) {
   	this.duocMienGiam= duocMienGiam;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }
public Boolean getDaXetHP() {
	return daXetHP;
}
public void setDaXetHP(Boolean daXetHP) {
	this.daXetHP = daXetHP;
}
}//endClass 

